<?php
/*
 * Created on 11-05-2012
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
 
App::uses('AppModel', 'Model');
class Reservation extends AppModel {
	public $name = 'Reservation';
	
	public $belongsTo = array(
		'Court' => array(
			'className' => 'Court',
			'foreignKey' => 'court_id',
		),
		'User' => array(
			'className' => 'User',
			'foreignKey' => 'user_id',
		),
		'Tournament' => array(
			'className' => 'Tournament',
			'foreignKey' => 'tournament_id',
		),
		'CyclicReservation' => array(
			'className' => 'CyclicReservation',
			'foreignKey' => 'cyclic_reservation_id',
		),
	);
}
?>
